package com.bytezero.supertest3;

/**
 * 
 * @Description 
 * @author  Bytezero·zhenglei!      Email:420498246@qq.com
 * @version
 * @date 2021年9月20日上午11:08:11
 * @
 *
 */
public class CheckAccountTest
{
	public static void main(String[] args)
	{
		CheckAccount acct = new CheckAccount(1122,20000,0.045,5000);
		
		acct.withdraw(5000);
		System.out.println("您的账户余额为："+ acct.getBalance());
		System.out.println("您的可透支额度为："+acct.getOverdraft());
		
		acct.withdraw(18000);
		System.out.println("您的账户余额为："+ acct.getBalance());
		System.out.println("您的可透支额度为："+acct.getOverdraft());
		
		acct.withdraw(3000);
		System.out.println("您的账户余额为："+ acct.getBalance());
		System.out.println("您的可透支额度为："+acct.getOverdraft());
		
		
		
		
	}
}
